import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
//引入字体文件
import "@/assets/font/iconfont.css";
//引入全局样式文件
import "@/assets/css/global.less";
//将项目全部请求函数引入进来[分别暴露]
import * as http from "@/api";
import SockerService from "@/utils/websocket_service";
//WebSocket连接
SockerService.Instance.connect();
//websocket挂载vue实例对象
Vue.prototype.$socket = SockerService.Instance;
//将全局的echarts对象挂载到Vue实例对象上
Vue.prototype.$echarts = window.echarts;
//绑定实例对象
Vue.prototype.$http = http;
Vue.config.productionTip = false;
new Vue({
  router,
  store,

  render: (h) => h(App),
}).$mount("#app");
